home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMHTMLCanvasElement.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  139 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMHTMLCanvasElement.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMHTMLCanvasElement_h__
  6. #define __gen_nsIDOMHTMLCanvasElement_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMHTMLElement_h__
  10. #include "nsIDOMHTMLElement.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMHTMLCanvasElement */
  19. #define NS_IDOMHTMLCANVASELEMENT_IID_STR "332dd7d0-97e2-44a0-af5b-1c3bafb0b1f2"
  20.  
  21. #define NS_IDOMHTMLCANVASELEMENT_IID \
  22.   {0x332dd7d0, 0x97e2, 0x44a0, \
  23.     { 0xaf, 0x5b, 0x1c, 0x3b, 0xaf, 0xb0, 0xb1, 0xf2 }}
  24.  
  25. /**
  26.  * The nsIDOMHTMLCanvasElement interface is the interface to a HTML
  27.  * <canvas> element.
  28.  *
  29.  * For more information on this interface, please see
  30.  * http://www.whatwg.org/specs/web-apps/current-work/#graphics
  31.  *
  32.  * @status UNDER_DEVELOPMENT
  33.  */
  34. class NS_NO_VTABLE nsIDOMHTMLCanvasElement : public nsIDOMHTMLElement {
  35.  public: 
  36.  
  37.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLCANVASELEMENT_IID)
  38.  
  39.   /* attribute long width; */
  40.   NS_IMETHOD GetWidth(PRInt32 *aWidth) = 0;
  41.   NS_IMETHOD SetWidth(PRInt32 aWidth) = 0;
  42.  
  43.   /* attribute long height; */
  44.   NS_IMETHOD GetHeight(PRInt32 *aHeight) = 0;
  45.   NS_IMETHOD SetHeight(PRInt32 aHeight) = 0;
  46.  
  47.   /* nsISupports getContext (in DOMString contextId); */
  48.   NS_IMETHOD GetContext(const nsAString & contextId, nsISupports **_retval) = 0;
  49.  
  50. };
  51.  
  52. /* Use this macro when declaring classes that implement this interface. */
  53. #define NS_DECL_NSIDOMHTMLCANVASELEMENT \
  54.   NS_IMETHOD GetWidth(PRInt32 *aWidth); \
  55.   NS_IMETHOD SetWidth(PRInt32 aWidth); \
  56.   NS_IMETHOD GetHeight(PRInt32 *aHeight); \
  57.   NS_IMETHOD SetHeight(PRInt32 aHeight); \
  58.   NS_IMETHOD GetContext(const nsAString & contextId, nsISupports **_retval); 
  59.  
  60. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  61. #define NS_FORWARD_NSIDOMHTMLCANVASELEMENT(_to) \
  62.   NS_IMETHOD GetWidth(PRInt32 *aWidth) { return _to GetWidth(aWidth); } \
  63.   NS_IMETHOD SetWidth(PRInt32 aWidth) { return _to SetWidth(aWidth); } \
  64.   NS_IMETHOD GetHeight(PRInt32 *aHeight) { return _to GetHeight(aHeight); } \
  65.   NS_IMETHOD SetHeight(PRInt32 aHeight) { return _to SetHeight(aHeight); } \
  66.   NS_IMETHOD GetContext(const nsAString & contextId, nsISupports **_retval) { return _to GetContext(contextId, _retval); } 
  67.  
  68. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  69. #define NS_FORWARD_SAFE_NSIDOMHTMLCANVASELEMENT(_to) \
  70.   NS_IMETHOD GetWidth(PRInt32 *aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWidth(aWidth); } \
  71.   NS_IMETHOD SetWidth(PRInt32 aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWidth(aWidth); } \
  72.   NS_IMETHOD GetHeight(PRInt32 *aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeight(aHeight); } \
  73.   NS_IMETHOD SetHeight(PRInt32 aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHeight(aHeight); } \
  74.   NS_IMETHOD GetContext(const nsAString & contextId, nsISupports **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContext(contextId, _retval); } 
  75.  
  76. #if 0
  77. /* Use the code below as a template for the implementation class for this interface. */
  78.  
  79. /* Header file */
  80. class nsDOMHTMLCanvasElement : public nsIDOMHTMLCanvasElement
  81. {
  82. public:
  83.   NS_DECL_ISUPPORTS
  84.   NS_DECL_NSIDOMHTMLCANVASELEMENT
  85.  
  86.   nsDOMHTMLCanvasElement();
  87.  
  88. private:
  89.   ~nsDOMHTMLCanvasElement();
  90.  
  91. protected:
  92.   /* additional members */
  93. };
  94.  
  95. /* Implementation file */
  96. NS_IMPL_ISUPPORTS1(nsDOMHTMLCanvasElement, nsIDOMHTMLCanvasElement)
  97.  
  98. nsDOMHTMLCanvasElement::nsDOMHTMLCanvasElement()
  99. {
  100.   /* member initializers and constructor code */
  101. }
  102.  
  103. nsDOMHTMLCanvasElement::~nsDOMHTMLCanvasElement()
  104. {
  105.   /* destructor code */
  106. }
  107.  
  108. /* attribute long width; */
  109. NS_IMETHODIMP nsDOMHTMLCanvasElement::GetWidth(PRInt32 *aWidth)
  110. {
  111.     return NS_ERROR_NOT_IMPLEMENTED;
  112. }
  113. NS_IMETHODIMP nsDOMHTMLCanvasElement::SetWidth(PRInt32 aWidth)
  114. {
  115.     return NS_ERROR_NOT_IMPLEMENTED;
  116. }
  117.  
  118. /* attribute long height; */
  119. NS_IMETHODIMP nsDOMHTMLCanvasElement::GetHeight(PRInt32 *aHeight)
  120. {
  121.     return NS_ERROR_NOT_IMPLEMENTED;
  122. }
  123. NS_IMETHODIMP nsDOMHTMLCanvasElement::SetHeight(PRInt32 aHeight)
  124. {
  125.     return NS_ERROR_NOT_IMPLEMENTED;
  126. }
  127.  
  128. /* nsISupports getContext (in DOMString contextId); */
  129. NS_IMETHODIMP nsDOMHTMLCanvasElement::GetContext(const nsAString & contextId, nsISupports **_retval)
  130. {
  131.     return NS_ERROR_NOT_IMPLEMENTED;
  132. }
  133.  
  134. /* End of implementation class template. */
  135. #endif
  136.  
  137.  
  138. #endif /* __gen_nsIDOMHTMLCanvasElement_h__ */
  139.